<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>

<div class="clearfix" id="main">
  <div id="content">
    <div class="confirmation" id="deal_confirmation">
      <form action="/pay" class="groupon_form" id="master_form" method="post" target="_blank">
        <div class="box whitetop_greenbtm" id="subtotal_box">
          <div class="box_top"></div>
          <div class="box_content clearfix">
            <div class="clearfix" id="your_purchase">
              <div class="page_header">
                <h2>你的订单</h2>
              </div>
              <table id="subtotal" class="sweet_stache">
                <thead>
                  <tr>
                    <th class="description">名称</th>
                    <th></th>
                    <th></th>
                    <th></th>
                    <th></th>
                    <th class="total">合计</th>
                  </tr>
                </thead>
                <tbody>
                  <tr class="line_item">
                    <td class="description" id="gift_options_container"><p class="title"> <strong>
					<input id="product_id" name="product_id" type="hidden" value="<?php echo $order->id; ?>">
						<?php echo $order->product->gym->gym_name; ?> </strong> </p>
                    <td class="quantity"></td>
                    <td class="times"></td>
                    <td class="price"></td>
                    <td class="equals"></td>
					<td class="total">
					  <span class="currency_html">
						<span class="unit">¥</span>
					    <span class="integer"><?php echo $order->product->product_price; ?></span>
						<span class="delimiter">.</span><span class="fraction">00</span></span> 
					  </td>
                  </tr>
                  <tr class="total">
                    <td class="label" colspan="5"><div class="right">
                        <p> 总格: </p>
                      </div></td>
					<td class="total">
					  <p id="my_price"> 
						<span class="currency_html">
						  <span class="unit">¥</span>
						  <span class="integer"><?php echo $order->product->product_price; ?></span>
						  <span class="delimiter">.</span><span class="fraction">00</span>
						</span> 
					  </p>
					</td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <div class="box_bottom"></div>
        </div>
        <div class="box" id="complete_purchase_container">
          <div class="box_top"></div>
          <div class="box_content clearfix">
            <div id="credit_cards">
              <div class="page_header">
                <h2 class="no_border"> 选择支付方式 <img alt="" height="17" src="https://secure-assets.grouponcdn.com/images/groupon/icons/padlock.gif?F-BFWB5h" title="" width="13"> </h2>
              </div>
              <input id="user_id" name="user_id" type="hidden" value="sundebing9249">
              <div class="billing_record_selection page_content"> </div>
              <div class="page_content">
              </div>
            </div>
            <div class="page_content">
				<fieldset class="paymentMethodMain">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="selectPayment" style="display:block;">
				<tbody><tr>
				<td class="radio"><input name="pt" type="radio" id="alipay_radio" onclick="switchPaymentType('alipay', 'alipay')" checked="checked" class="redirect_payment"></td>
				<td class="img"><label for="alipay_radio"><img src="/images/icons/pico_alipay.gif" alt="icon">
				</label></td>
			</tr>
		</tbody></table>	
		</fieldset>

              <div class="field check" id="order-accept-terms-check">
                <div class="clearfix">
                  <input name="order[accept_terms]" type="hidden" value="0">
                  <input class="validate-accept-terms check" id="order_accept_terms" name="order[accept_terms]" type="checkbox" value="1" checked="true">
                  <label for="order_accept_terms">我同意<a href="/terms" target="_blank">服务条款</a> </label>
                </div>
              </div>
            </div>
            <div class="checkout buttons">
              <div class="page_content clearfix">
                <input class="button form_btn large complete disabled_on_submit" id="credit_cards_submit" name="commit" title="Complete Order" type="submit" value="Complete Order">
			  </div>
            </div>
          </div>
          <div class="box_bottom"></div>
        </div>
      </form>
    </div>
  </div>
  <div id="rail">
    <div class="box">
      <div class="box_top"></div>
      <div class="box_content">
        <div class="page_content clearfix">
          <h5> Payment FAQ </h5>
          <ul class="collapsible_faq collapsible_panel">
            <li>
              <h4 class="toggle_handle"> <a class="anti_link list_item_toggle" href="#">What happens after I buy?</a> </h4>
              <p class="toggle_content" style="display: none; ">Within a few minutes you'll receive an email receipt confirming that your card has been charged.  Your receipt will describe how to print your Groupon, and your Groupon will include everything you need to know to redeem it.  If the deal hasn't tipped yet, your receipt will arrive when it does.  If the deal doesn't tip before time runs out, your card isn't charged and nobody gets the deal.</p>
            </li>
            <li>
              <h4 class="toggle_handle"> <a class="anti_link list_item_toggle" href="#">What if I buy as a gift?</a> </h4>
              <p class="toggle_content" style="display: none; ">When you buy a Groupon as a gift and choose to email it, an email will be sent to the recipient as soon as your card is charged, with all the instructions they need to claim their gift with a single click.  If you chose to print your gift, you'll be able to do that on 'My Gifts' once your card has been charged.</p>
            </li>
            <li>
              <h4 class="toggle_handle"> <a class="anti_link list_item_toggle" href="#">Can I change or cancel my purchase?</a> </h4>
              <p class="toggle_content" style="display: none; ">Yes, you can modify your purchase up until the deal closes, as long as you haven't printed your Groupons - once you print, you can no longer change your purchase.  You'll see all your purchases on 'My Groupons', with a link to 'Change my purchase' where appropriate.</p>
            </li>
            <li>
              <h4 class="toggle_handle"> <a class="anti_link list_item_toggle" href="#">Is this safe?</a> </h4>
              <p class="toggle_content" style="display: none; ">Yes, extremely. Your credit card number is transmitted by SSL directly to a secure electronic vault, and the little 'padlock' icon on your browser confirms this.  At no time is your credit card information stored on our servers.</p>
            </li>
          </ul>
          <div id="groupon_promise">
            <h4><img alt="The Groupon Promise" src="https://secure-assets.grouponcdn.com/images/groupon/merchants/groupon-promise.png?axl8XglH"></h4>
            <p>Nothing is more important to us than treating our customers well.</p>
            <p>If you ever feel like Groupon let you down, give us a call and we'll return your purchase — simple as that.</p>
          </div>
          <div class="truste"> <a href="http://privacy-policy.truste.com/click-with-confidence/wps/en/www.groupon.com/seal_m"><img alt="Seal_m" src="https://privacy-policy.truste.com/certified-seal/wps/en/www.groupon.com/seal_m.png"></a> </div>
        </div>
      </div>
      <div class="box_bottom"></div>
    </div>
  </div>
</div>

